package cn.com.cetccst.basiccollection;

import android.util.Log;

import androidx.annotation.NonNull;

//静态设备信息
public enum InfoType {
    SOURCE_INFO("SOURCE_INFO"),
    HARDWARE_INFO("HARDWARE_INFO");

    public String protolName;

    InfoType(String protolName) {
        this.protolName = protolName;
    }

    @NonNull
    @Override
    public String toString() {
        return name();
    }

    public static InfoType lookup(String name) {
        InfoType type = null;
        try {
            type = InfoType.valueOf(name);
        } catch (Exception e) {
            Log.w("BasicInfoType", "not define name " + name);
        }
        return type;
    }
}
